package com.xhsj.user.hr.process.overtime.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xhsj.user.hr.base.BaseEntity;
import java.time.LocalDate;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 加班申请时间
 * </p>
 *
 * @author suxiaolin
 * @since 2020-10-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_hr_overtime_apply_time")
public class TbHrOvertimeApplyTime extends BaseEntity<TbHrOvertimeApplyTime> {

    private static final long serialVersionUID = 1L;

    /**
     * 加班申请id
     */
    @TableField("overtime_apply_id")
    private Long overtimeApplyId;

    /**
     * 加班时长
     */
    @TableField("work_length")
    private int workLength;

    /**
     * 开始日期
     */
    @TableField("start_date")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date startDate;

    /**
     * 结束日期
     */
    @TableField("stop_date")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date stopDate;

    /**
     * 开始时间
     */
    @TableField("start_time")
    private String startTime;

    /**
     * 结束时间
     */
    @TableField("stop_time")
    private String stopTime;


}
